﻿@model IEnumerable<Learnive.Models.Webmail>

@{
    ViewBag.Title = "Webmail";
}

<h2>Webmail</h2>

<table id="mail">
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.Datum)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Afzender)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.Onderwerp)
        </th>
        <th>
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.ActionLink(item.Datum, "Details", new { id=item.ID }) 
        </td>
        <td>
            @Html.ActionLink(item.Afzender, "Details", new { id=item.ID }) 
        </td>
        <td>
            @Html.ActionLink(item.Onderwerp, "Details", new { id=item.ID })
        </td>
        <td>
            @Html.ActionLink("Delete", "Delete", new { id=item.ID }, new { @class="delete" })
        </td>
    </tr>
}

</table>
